package cn.fanyamin.server;

/**
 * The Interface IServer.
 *
 * @author walter
 */
public interface IServer {
    /**
     * @return name
     */
    String getName();
    /**
     * Starts the process.
     * 
     * @throws Exception
     *             If the process fails to start
     */
    void start() throws Exception;

    /**
     * Stops the process. The process may wait for current activities to
     * complete normally, but it can be interrupted.
     *
     * @throws Exception If the process fails to stop
     */
    void stop() throws Exception;

    /**
     * Checks if is started.
     *
     * @return status
     */
    boolean isStarted();

}
